From 0a8fa9276d344517d758c7966f178957296645a6 Mon Sep 17 00:00:00 2001 From: tsteven4 Date: Sat, 7 Jul 2018 06:51:37 -0600 Subject: [PATCH] catch CMakeLists up. --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f30c15d97..8513b0565 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -131,7 +131,6 @@ set(HEADERS jeeps/gpsdatum.h jeeps/gpsdevice.h jeeps/gpsfmt.h - jeeps/gpsinput.h jeeps/gpsmath.h jeeps/gpsmem.h jeeps/gpsport.h @@ -258,3 +257,7 @@ message("${DirDefs}") message("Libs are:") message("${LIBS}") +if(UNIX) + # the tests only work if the pwd is top level source dir due to the file name getting embedded in the file nonexistent.err. + add_custom_target(check cd ${CMAKE_SOURCE_DIR}\; PNAME=${CMAKE_BINARY_DIR}/GPSBabel ./testo DEPENDS GPSBabel) +endif() -- 2.30.2